package com.bj58.mis.apm.server.kylinreceive.model;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 根据cube id 统计查询次数和有效次数（历史衰减）
 */
@Entity
@Table(name="kylin_query_times_cube")
public class KylinQueryTimesCube implements Serializable {

    @Id
    private String cubeId;
    private Long queryTimes;
    private Double effectiveTimes;
    private Long queryDuration;
    private Date lastQueryTime;
    private Date lastModified;

    public String getCubeId() {
        return cubeId;
    }

    public void setCubeId(String cubeId) {
        this.cubeId = cubeId;
    }

    public Long getQueryTimes() {
        return queryTimes;
    }

    public void setQueryTimes(Long queryTimes) {
        this.queryTimes = queryTimes;
    }

    public Double getEffectiveTimes() {
        return effectiveTimes;
    }

    public void setEffectiveTimes(Double effectiveTimes) {
        this.effectiveTimes = effectiveTimes;
    }

    public Date getLastQueryTime() {
        return lastQueryTime;
    }

    public void setLastQueryTime(Date lastQueryTime) {
        this.lastQueryTime = lastQueryTime;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public Long getQueryDuration() {
        return queryDuration;
    }

    public void setQueryDuration(Long queryDuration) {
        this.queryDuration = queryDuration;
    }
}
